import request from '@/utils/request'

// 查询二类医疗器械列表
export function listTdmErYiLiaoQiXie(query) {
  return request({
    url: '/admin/TdmErYiLiaoQiXie/list',
    method: 'get',
    params: query
  })
}

// 查询二类医疗器械详细
export function getTdmErYiLiaoQiXie(id) {
  return request({
    url: '/admin/TdmErYiLiaoQiXie/' + id,
    method: 'get'
  })
}

// 新增二类医疗器械
export function addTdmErYiLiaoQiXie(data) {
  return request({
    url: '/admin/TdmErYiLiaoQiXie',
    method: 'post',
    data: data
  })
}

// 修改二类医疗器械
export function updateTdmErYiLiaoQiXie(data) {
  return request({
    url: '/admin/TdmErYiLiaoQiXie',
    method: 'put',
    data: data
  })
}

// 删除二类医疗器械
export function delTdmErYiLiaoQiXie(id) {
  return request({
    url: '/admin/TdmErYiLiaoQiXie/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
